Component org.nuxeo.ecm.platform.comment.workflow.operation.contrib
In bundle org.nuxeo.ecm.platform.comment.workflow
Contributions
- org.nuxeo.ecm.platform.comment.workflow.operation.contrib--chains
- org.nuxeo.ecm.platform.comment.workflow.operation.contrib--operations
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.comment.workflow.operation.contrib">
<extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent"
point="operations">
<operation class="org.nuxeo.ecm.platform.comment.workflow.ModerateCommentOperation" />
</extension>
<extension point="chains"
target="org.nuxeo.ecm.core.operation.OperationServiceComponent">
<chain id="acceptComment">
<operation id="Context.FetchDocument" />
<operation id="Comment.Moderate">
<param type="boolean" name="accept">true</param>
</operation>
</chain>
<chain id="rejectComment">
<operation id="Context.FetchDocument" />
<operation id="Comment.Moderate">
<param type="boolean" name="accept">false</param>
</operation>
</chain>
</extension>
</component>